import { stringify } from 'qs';
import request from '../utils/request';
import API from './ipConfig'

/**
 *获取充值配置
 *
 */
export async function getRechargeConfig() {
  return request(`${API}/sys/eventManage/getRechargeConfig`,{
    method: 'GET',
  });
}



/**
 * 修改充值配置
 *
 * @export
 * @returns
 */
export async function updateRechargeConfig(params) {
  return request(`${API}/sys/eventManage/updateRechargeConfig`,{
    method: 'POST',
    body: params,

  });
}

/**
 * 获取福利金配置
 */

export async function getWelfareConfig() {
  return request(`${API}/sys/eventManage/getWelfareConfig`,{
    method: 'GET',
  });
}


/**
 * 修改充值配置
 *
 * @export
 * @returns
 */
export async function updateWelfareConfig(params) {
  return request(`${API}/sys/eventManage/updateWelfareConfig`,{
    method: 'POST',
    body: params,

  });
}

/**
 * 获取礼券配置
 */

export async function getGiftConfig() {
  return request(`${API}/sys/eventManage/getGiftConfig`,{
    method: 'GET',
  });
}


/**
 * 修改礼券配置
 *
 * @export
 * @returns
 */
export async function updateGiftConfig(params) {
  return request(`${API}/sys/eventManage/updateGiftConfig`,{
    method: 'POST',
    body: params,

  });
}

/***
 * 获取邀请好友奖励配置
 */

export async function getInviteRewardsConfig() {
  return request(`${API}/sys/eventManage/getInviteRewardsConfig`,{
    method: 'GET',
  });
}


/**
 * 修改邀请好友奖励配置
 *
 * @export
 * @returns
 */
export async function updateInviteRewardsConfig(params) {
  return request(`${API}/sys/eventManage/updateInviteRewardsConfig`,{
    method: 'POST',
    body: params,
  });
}
